package cn.kgc.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单支付信息
 * </p>
 *
 * @author psq
 * @since 2021-08-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="PayOrder对象", description="订单支付信息")
public class PayOrder implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "订单编号")
    @TableField("orderNo")
    private String orderNo;

    @ApiModelProperty(value = "支付订单号")
    @TableField("payNo")
    private String payNo;

    @ApiModelProperty(value = "阿里交易订单号")
    @TableField("aliTradeNo")
    private String aliTradeNo;

    @ApiModelProperty(value = "用户id")
    @TableField("userId")
    private Long userId;

    @ApiModelProperty(value = "支付金额")
    private BigDecimal price;

    @ApiModelProperty(value = "支付类型（1:定金,2:尾款）")
    @TableField("payType")
    private Integer payType;

    @ApiModelProperty(value = "支付状态（1:未支付,2:支付成功,3:支付失败）")
    private Integer status;

    @ApiModelProperty(value = "支付途径（1:现金,2:刷卡,3:支付宝,4:微信）")
    @TableField("payChannel")
    private Integer payChannel;

    @ApiModelProperty(value = "创建人")
    @TableField("createdUserId")
    private Long createdUserId;

    @ApiModelProperty(value = "修改人")
    @TableField("updatedUserId")
    private Long updatedUserId;

    @ApiModelProperty(value = "创建时间")
      @TableField(value = "creatdTime", fill = FieldFill.INSERT)
    private Date creatdTime;

    @ApiModelProperty(value = "修改时间")
      @TableField(value = "updatedTime", fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableField("isDelete")
    private Integer isDelete;


}
